home *** CD-ROM | disk | FTP | other *** search
- Path: news.onramp.net!usenet
- From: dallas33@onramp.net
- Newsgroups: comp.lang.c
- Subject: Re: open & file locking
- Date: Fri, 16 Feb 1996 04:29:38 GMT
- Organization: On-Ramp; Individual Internet Connections; Dallas/Ft Worth/Houston, TX USA
- Message-ID: <4g11il$hd9@news.onramp.net>
- References: <4frlk1$q13@news.onramp.net> <danpop.824297337@rscernix>
- NNTP-Posting-Host: central08.onramp.net
- X-Newsreader: Forte Free Agent 1.0.82
-
- Dan,
-
- I have received the exact replies I'm looking for; A template which
- which includes a header file and provides for file-locking management.
- My hats off to Mark Klenke for supplying more than I had hoped for.
-
- Perhaps the C language, in general, does not provide for file locking
- mechanisms, but anyone who has ever had to write an application where
- file access is necessary for multiple concurrent users, would
- understand the necessity for file locking. Individuals who have been
- fortunate enough to have their requirements for single-user usage, are
- blessed in that their applications do not have to carry the burden of
- these complexities. I enjoy taking on these challenges and have no
- shame in asking for help; in this respect, Mark is my savior for the
- day.
-
- Nonetheless, I do appreciate your responding.
-
- Sincerely,
-
- Darryl
-
- danpop@mail.cern.ch (Dan Pop) wrote:
-
- >In <4frlk1$q13@news.onramp.net> dallas33@onramp.net writes:
-
- >>I would like to construct a 'C' program file wrapper which will
- >>facilitate file locking. The primary platforms of deplayment will be
- >>on the SUN Solaris and secondary on a Pyramid Nile.
-
- >The C language provides absolutely no support for file locking.
- >For Sun and Pyramid solutions you should have asked in newsgroups
- >dedicated to those platforms.
-
- >>From the texts I have at my disposal, there are many references to the
- >>usage of the 'open' and 'fnctl' calls and file handling modes,
- >>however, I only seem to be hacking around, and with little success.
-
- >I dunno what are texts at your disposal, but the man page for lockf()
- >AND "Advanced Programming in the UNIX Environment" by W. R. Stevens
- >(the "Advanced I/O" chapter) are all you need.
-
- >Dan
- >--
- >Dan Pop
- >CERN, CN Division
- >Email: danpop@mail.cern.ch
- >Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
-
-
-